package me.sunpeng.design.builder.improve;

/**
 * 抽象的建造者
 *
 * @author sp
 */
public abstract class HouseBuilder {
    protected House house = new House();

    /**
     * 打地基
     */
    public abstract void buildBasic();

    /**
     * 砌墙
     */
    public abstract void buildWalls();

    /**
     * 封顶
     */

    public abstract void roofed();


    /**
     * 建造房子,将产品(房子)返回
     */
    public House buildHouse() {
        return house;
    }

}
